package com.example.basicdemo.model.builder;

import com.example.basicdemo.model.domain.MessageStartParamDomain;
import com.isyscore.os.dev.api.IsyscoreRequestBuilder;
import com.isyscore.os.dev.util.IsyscoreHashMap;

/**
 * 启动工作流
 */
public class MessageStartBuilder extends IsyscoreRequestBuilder {

    private IsyscoreHashMap headers;

    /**
     * 组织类型信息
     */
    private MessageStartParamDomain bizModel;

    public MessageStartParamDomain getBizModel() {
        return bizModel;
    }

    public MessageStartBuilder setBizModel(MessageStartParamDomain bizModel) {
        this.bizModel = bizModel;
        return this;
    }

    public IsyscoreHashMap getHeaders() {
        return headers;
    }

    public MessageStartBuilder setHeaders(IsyscoreHashMap headers) {
        this.headers = headers;
        return this;
    }

    /**
     * 验证请求对象
     *
     * @return
     */
    @Override
    public boolean validate() {
        return true;
    }
}
